﻿<UserControl x:Class="RZD_maps.RZD_maps_ctrl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:prism="http://www.codeplex.com/CompositeWPF"
             xmlns:ad="clr-namespace:AvalonDock;assembly=AvalonDock"
              LostFocus="UserControl_LostFocus" 
             >
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="140"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <ItemsControl prism:RegionManager.RegionName="RibbonRegion" Grid.Row="0" Margin="0,5,0,0" />


       
        <ad:DockingManager x:Name="dockManager" Grid.Row="1" >
            <ad:ResizingPanel Orientation="Vertical" Margin="5"> 

          <!--      <ad:DocumentPane SelectedIndex="0" ShowHeader="False" BorderThickness="0" Opacity="0.9" ad:ResizingPanel.ResizeHeight="140" MinHeight="140" >
                            <ad:DocumentContent>
                            <ItemsControl prism:RegionManager.RegionName="RibbonRegion"/>
                        </ad:DocumentContent>

                        </ad:DocumentPane> -->
                <ad:ResizingPanel Orientation="Horizontal">
                    <ad:DockablePane SelectedIndex="0" ad:ResizingPanel.ResizeWidth="0.3*">
                                <ad:DockableContent Title="Станции">
                                    <ItemsControl prism:RegionManager.RegionName="StationsRegion">
                                        <ItemsControl.ItemsPanel>
                                            <ItemsPanelTemplate>
                                                <Grid/>
                                            </ItemsPanelTemplate>
                                        </ItemsControl.ItemsPanel>
                                    </ItemsControl>
                                </ad:DockableContent>
                        <ad:DockableContent Title="Транспорт">
                            <ItemsControl prism:RegionManager.RegionName="TransportRegion">
                                <ItemsControl.ItemsPanel>
                                    <ItemsPanelTemplate>
                                        <Grid/>
                                    </ItemsPanelTemplate>
                                </ItemsControl.ItemsPanel>
                            </ItemsControl>
                        </ad:DockableContent>
                        <ad:DockableContent Title="Пути" />
                            </ad:DockablePane>


                    <ad:ResizingPanel Orientation="Vertical" >
                        <ad:DocumentPane SelectedIndex="0"  >
                            <ad:DocumentContent Title="Document1">
                                <Grid>
                                        <ItemsControl prism:RegionManager.RegionName="MapsRegion">
                                        <ItemsControl.ItemsPanel>
                                            <ItemsPanelTemplate>
                                                <Grid/>
                                            </ItemsPanelTemplate> 
                                        </ItemsControl.ItemsPanel>
                                    </ItemsControl>

                                    <ItemsControl prism:RegionManager.RegionName="MapScaleViewRegion" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="0,5,5,0">
                                        <ItemsControl.ItemsPanel>
                                            <ItemsPanelTemplate>
                                                <Grid/>
                                            </ItemsPanelTemplate>
                                        </ItemsControl.ItemsPanel>
                                    </ItemsControl>
                                </Grid>
                            </ad:DocumentContent>
                                </ad:DocumentPane>

                                <ad:DockablePane SelectedIndex="0" ad:ResizingPanel.ResizeHeight="0.3*">
                                    <ad:DockableContent Title="DetailView (Console)">
                                <ScrollViewer VerticalScrollBarVisibility="Auto">

                                    <ItemsControl prism:RegionManager.RegionName="ConsoleViewRegion">
                                        <ItemsControl.ItemsPanel>
                                            <ItemsPanelTemplate>
                                                <Grid/>
                                            </ItemsPanelTemplate>
                                        </ItemsControl.ItemsPanel>
                                    </ItemsControl>
                                </ScrollViewer>
                            </ad:DockableContent>
                                </ad:DockablePane>
                            </ad:ResizingPanel>
                    
                    <ad:ResizingPanel Orientation="Vertical" ad:ResizingPanel.ResizeWidth="0.3*">
                        <ad:DockablePane SelectedIndex="0">
                            <ad:DockableContent Title="Properties">
                                <ItemsControl prism:RegionManager.RegionName="PropertiesRegion">
                                    <ItemsControl.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <Grid/>
                                        </ItemsPanelTemplate>
                                    </ItemsControl.ItemsPanel>
                                </ItemsControl>
                            </ad:DockableContent>
                        </ad:DockablePane>
                        <ad:DockablePane SelectedIndex="0">
                            <ad:DockableContent Title="DetailView">
                                <ItemsControl prism:RegionManager.RegionName="DetailViewRegion">
                                    <ItemsControl.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <Grid/>
                                        </ItemsPanelTemplate>
                                    </ItemsControl.ItemsPanel>
                                </ItemsControl>
                            </ad:DockableContent>

                            <ad:DockableContent Title="График2">
                                <ItemsControl prism:RegionManager.RegionName="Graph2">
                                    <ItemsControl.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <Grid/>
                                        </ItemsPanelTemplate>
                                    </ItemsControl.ItemsPanel>
                                </ItemsControl>
                            </ad:DockableContent>

                            <ad:DockableContent Title="График3">
                                <ItemsControl prism:RegionManager.RegionName="Graph3">
                                    <ItemsControl.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <Grid/>
                                        </ItemsPanelTemplate>
                                    </ItemsControl.ItemsPanel>
                                </ItemsControl>
                            </ad:DockableContent>



                        </ad:DockablePane>
                    </ad:ResizingPanel>

                </ad:ResizingPanel>







                   </ad:ResizingPanel> 
        </ad:DockingManager>    
    </Grid>
</UserControl>
